import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';

const router = createRouter({
  history: createWebHashHistory('/crab-ui/'),
  routes: [
    {
      path: '/',
      component: () => import('@/views/index.vue'),
      children: [
        {
          path: '/',
          component: () => import('@/views/index/index.vue'),
        },
        { 
          path: '/:pathMatch(.*)*',
          name: 'NotFound',
          component: () => import('../views/index/all.vue'),
        },
      ]
    }
  ]
});

export default router;
